﻿<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html;" charset="utf-8" />
        <meta http-equiv="Expires" content="0" />
        <noscript>
            <meta http-equiv="refresh" content="0;" url="/_layouts/spsredirect.aspx?noscript=1" />
        </noscript>

        <script language="javascript" src="/_layouts/1033/init.js"></script>
        <script language="javascript" src="/_layouts/1033/core.js"></script>
        
        <script language="javascript" type="text/javascript">
//debugger;
            var url = window.location.href;
            
            var match = url.match( /[^\/]*\/\/[^\?]*/g );
            var url_array = match[ 0 ].split( "/" );
            
            // page name
            var lastelementindex = url_array.length - 1;
            var pagename = url_array[ lastelementindex ];
            
            if ( pagename == "404.aspx" )
                window.location = "res://ieframe.dll/http_404.htm#" + url;
            else
            {
                // server url
                var serverUrl = "";
                for ( var i = 0; i < url_array.length - 1; i++ )
                {
                    serverUrl += url_array[ i ] + "/";
                }
                
                // old url
                var requestedUrl = escapeProperly( url );
            
                STSNavigate( serverUrl + "404.aspx?oldUrl=" + requestedUrl + "&k=" + pagename );
            }

        </script>
        
    </head>
    <body>
    </body>
</html>